import React,{Component} from 'react';

export default class extends Component {
  constructor(props) {
      super(props)
      this.state = {
        lists:[
          {id:0,name:'abc'},{id:1,name:'bbb'},{id:2,name:'ccc'}
        ],
        lists2:[
          <div>123</div>,<div>222</div>,<div>333</div>
        ],
        name:'hello'
      }
  }


  render() {

    var list = this.state.lists.map( (item) => {
        return <div key={item.name}>{item.name}</div>
    })

    return (
        <div>
            {list}
        </div>
    )
  }
}
